
GridDlg.controllerName = "/admin/post";
GridDlg.PrimaryKey = "pId";
GridDlg.formId = "post";
/**
 * 用户详情对话框（可用于添加和修改对话框）
 */
GridDlg.validateFields =  {
    pName: {
        validators: {
            notEmpty: {
                message: '职务名称不能为空'
            }

        }
    }
};

/**
 * 收集数据
 */
GridDlg.collectData = function () {
    this.set('pId').set('pName');
};

$(function () {
    Common.initValidator(GridDlg.formId, GridDlg.validateFields);
});
